home *** CD-ROM | disk | FTP | other *** search
- Path: mail.fc.ford.com!MMILLER4
- From: mmiller4@mail.fc.ford.com
- Newsgroups: vmsnet.misc,comp.lang.c
- Subject: Re: How to run a C program taking command line arguments on VMS
- Date: 1 Mar 1996 12:31:36 GMT
- Organization: Ford Credit
- Message-ID: <4h6qn8$glj@eccdb1.pms.ford.com>
- References: <4h1u5d$s5c@news.fsu.edu>
- Reply-To: mmiller4@mail.fc.ford.com
- NNTP-Posting-Host: 19.59.49.253
-
- In article <4h1u5d$s5c@news.fsu.edu>, meil@firnvx.firn.edu (Lynn Mei) writes:
- >Could someone tell me how to run a C program which takes command line
- >arguments on VAX/VMS? I have checked the FAQ about openVMS and tried the
- >instructions. But I couldn't get it work. I don't have an openVMS mannual.
- >Please help me!
- >
- >If run on Unix or DOS, I could type something like
- >
- > myprog -lu abcd
-
- You need to define a "foreign command" in DCL. For example:
-
- $ myprog == "$path:myprog.exe"
- $ myprog -lu abcd
-
- Note that VMS will convert the command line arguments to lowercase. To prevent
- this from happening, surround the arguments you do not want converted with
- double quotes ("ARGUMENT"). For example:
-
- $ myprog -lu "abcd"
- ------------------------------------------------------------------------------
- Michael G. Miller "Nobody rides for free!!!" -- RATT
- Ford Motor Credit Company
- mmiller4@fc.ford.com
-
- -- Views are mine and not necessarily those of my employer. --
-